import 'package:mybaseplus/base/tool/entitylog/MyEntityLog.dart';

class UserEntity {
  String? id;
  String? nickname;
  String? token;

  UserEntity({
    this.id,
    this.nickname,
    this.token,

  });

  UserEntity.fromJson(Map<String, dynamic> json) {
    id = MyEntityLog.handleString(json, 'id');
    nickname = MyEntityLog.handleString(json, 'nickname');
    token = MyEntityLog.handleString(json, 'token');
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['nickname'] = this.nickname;
    data['token'] = this.token;
    return data;
  }
}